import Cookies from 'js-cookie'

const IsLoginKey = 'Admin-Is-Login'

export function getIsLogin() {
  return Cookies.get(IsLoginKey)
}

export function setIsLogin(isLogin) {
  return Cookies.set(IsLoginKey, isLogin)
}

export function removeIsLogin() {
  return Cookies.remove(IsLoginKey)
}



const TokenKey = 'Admin-Token'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}